/*******************************************************************************
 * Package: com.hngtrust.iir.third.service
 * Type:    ChinaTrustRegistrationService
 * Date:    2021/10/14 10:26
 *
 * Copyright (c) 2021 HUANENG GUICHENG TRUST CORP.,LTD All Rights Reserved.
 *
 * You may not use this file except in compliance with the License.
 *******************************************************************************/
package com.hngtrust.iir.third.service;

import com.hngtrust.framework.page.PageResult;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.hngtrust.framework.bind.ResponseInfo;
import com.hngtrust.iir.dto.ReqDTO;
import com.hngtrust.iir.third.controller.dto.CtrRelationDTO;
import com.hngtrust.iir.third.controller.dto.RelatedPartiesExportVO;
import com.hngtrust.iir.third.controller.dto.RelatedPartiesVO;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 调用中信登第三方接口(关联方信息)
 *
 * @author Yujiaqi
 * @date 2021/10/14 10:26
 */
public interface RelatedPartiesService {
    /**
     * 关联方信息查询
     * @param relatedPartiesVO
     * @return
     */
    ResponseInfo<PageResult<CtrRelationDTO>> addRelatedParties(ReqDTO<RelatedPartiesVO> relatedPartiesVO) throws JsonProcessingException;
    
    /**
     * 更新中信登受益人数据
     * @param relatedPartiesVO
     * @return
     */
    ResponseInfo<PageResult<CtrRelationDTO>> updateRelatedParties(ReqDTO<RelatedPartiesVO> relatedPartiesVO);
    
    /**
     * 关联方数据导出
     * @param relatedPartiesExportVO
     * @param response
     */
    void dataExport(RelatedPartiesExportVO relatedPartiesExportVO, HttpServletResponse response) throws IOException;
}
